/**
 * 全息档案
 */

const serviceName = 'sjsk-user-profile-service'
import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'
//获取全息档案列表
const profileList = params => postAction(`${serviceName}/profile/list?pageNo=${params.pageNo}&pageSize=${params.pageSize}`,params)
//基本信息
const basicDetail = params => postAction(`${serviceName}/person/basic/detail?basePersonId=${params.basePersonId}`)
//基本信息(人员标签，风险等级)
const getSlskProfile = params => getAction(`/sjsk-user-profile-service/profile/detail/${params}`)
//居住位置信息
const residence = params => postAction(`${serviceName}/person/basic/residence`,params)
//人员家属列表
const Families = params => postAction(`${serviceName}/person/basic/families`,params)

//变更执行地
const getChangeList = params => getAction(`/sjsk-person-service/holographicArchives/getChangeList`,params)
//异地管控
const getRemoteControllerList = params => getAction(`/sjsk-person-service/holographicArchives/getRemoteControllerList`,params)
//请假
const getOutLeaveList = params => getAction(`/sjsk-person-service/holographicArchives/getOutLeaveList`,params)
//中止
const getAbortList = params => getAction(`/sjsk-person-service/holographicArchives/getAbortList`,params)

//出入所衔接及报道
const connectionReportAccess = params => postAction(`/sjsk-jail-service/holographic/connectionReportAccess`,params)
//监所信息
const prisonInformation = params => postAction(`/sjsk-jail-service/holographic/prisonInformation`,params)

//计划-整模块
const holoArchivePlan = params => postAction(`/sjsk-crowmanage-service/holoArchive/holoArchivePlan`,params)
//结案评估-结案
const indivCaseClosureInfo = params => postAction(`/sjsk-clinicmanage-service/sjsk/ce/indivCaseClosureInfo`,params)
//查看结案信息
const getDoneCePersonInfo = params => getAction(`/sjsk-clinicmanage-service/sjsk/ce/getDoneCePersonInfo`,params)

//告警中心
const queryArchivesAlarm = params => postAction(`/sjsk-alarm-service/alarm-center/queryArchivesAlarm`,params)

//签到平均率
const signRateCount = params => postAction(`/sjsk-clinicmanage-service/sjsk/sp/signRateCount`,params)
//漏签统计
const personMissSignCount = params => postAction(`/sjsk/sp/personMissSignCount`,params)

//监所异常数量
const abnormalSelectNum = params => postAction(`/sjsk-jail-service/supervisoryData/abnormalSelectNum`)
//监所异常数据
const abnormalPageNew = params => postAction(`/sjsk-jail-service/supervisoryData/abnormalPageNew`,params)
//解除异常
const removeException = params => postAction(`/sjsk-jail-service/supervisoryData/removeException`,params)


// //出入所衔接流程API
// //报道记录
// const recordBD = params => postAction(`${serviceName}/person/transfer/register/record`,params)
// //入所记录
// const recordRS = params => postAction(`${serviceName}/person/transfer/imprison/record`,params)
// //出所记录
// const recordCS = params => postAction(`${serviceName}/person/transfer/out-prison/record`,params)
// //告警中心
// const alarmCenter = params => postAction(`${serviceName}/alarm-center/list/${params}`)

//介入
//谈心记录
const intervention = params => postAction(`${serviceName}/person/intervention/bjtx/list${params}`)
//谈话详情
const detail = params => postAction(`${serviceName}/person/intervention/bjtx/detail/${params}`)

//监所信息
const jail = params => postAction(`${serviceName}/jail/police/detail`,params)
//司法强戒所数据
const judicature = params => postAction(`${serviceName}/jail/judicature/detail`,params)

//职业技能培训
const holoArchiveSkillTrain = params => postAction(`/sjsk-crowmanage-service/holoArchive/holoArchiveSkillTrain`,params)
//就业安置
const holoArchiveEmployReset = params => postAction(`/sjsk-crowmanage-service/holoArchive/holoArchiveEmployReset`,params)
//心里咨询
const holoArchivePsyCounSel = params => postAction(`/sjsk-crowmanage-service/holoArchive/holoArchivePsyCounSel`,params)
/**
 * 帮助中心
 */
const documentList = params => postAction(`${serviceName}/document/list`,params)

//更新人员档案标签
const tagUpdate = params => postAction(`sjsk-user-profile-service/profile/tag/update`,params)

export {
  tagUpdate,
  abnormalPageNew,
  abnormalSelectNum,
  profileList,
  basicDetail,
  Families,
  residence,
  // recordBD,
  // recordCS,
  // alarmCenter,
  getSlskProfile,
  getDoneCePersonInfo,
  personMissSignCount,
  signRateCount,
  holoArchivePlan,
  intervention,
  detail,
  jail,
  judicature,
  documentList,

  getChangeList,
  getRemoteControllerList,
  getOutLeaveList,
  getAbortList,
  indivCaseClosureInfo,
  connectionReportAccess,
  prisonInformation,
  queryArchivesAlarm,
  holoArchiveSkillTrain,
  holoArchiveEmployReset,
  holoArchivePsyCounSel,
  removeException
}